package com.zxt.dental_sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageInfo;
import com.github.pagehelper.page.PageMethod;
import com.zxt.dental_sys.model.SysElementUserinfo;
import com.zxt.dental_sys.service.SysElementUserinfoService;
import com.zxt.dental_sys.mapper.SysElementUserinfoMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author 24862
* @description 针对表【sys_element_userinfo】的数据库操作Service实现
* @createDate 2025-04-23 17:57:38
*/
@Service
public class SysElementUserinfoServiceImpl extends ServiceImpl<SysElementUserinfoMapper, SysElementUserinfo>
    implements SysElementUserinfoService{
    @Resource
    SysElementUserinfoMapper sysElementUserinfoMapper;

    @Override
    public PageInfo<SysElementUserinfo> queryUserList(int page, int size, String name, String roles) {
        PageMethod.startPage(page,size);
        return new PageInfo<>(sysElementUserinfoMapper.queryUsers(name,roles));
    }

}




